package com.token.iot.bratterycharging.boss.web;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.outstanding.framework.base.TransactionLogger;
import com.outstanding.framework.container.springmvc.WebContext;
import com.outstanding.framework.core.PageInfo;
import com.outstanding.framework.core.PendingException;
import com.token.iot.bratterycharging.boss.service.UserService;

@Controller
@RequestMapping("/user")
public class UserController {

	@Autowired
	private UserService service;
	
	@ResponseBody
	@RequestMapping(value = "/list.do")
	public PageInfo<UserDTO> list(@RequestBody ReqPageDto dto) throws PendingException {
		return service.list(dto.getPageNo(), dto.getPageSize());
		
	}
}
